package Administrator.AdministratorMainFrame.AdministratorMainFrameView.ConfigureContestPane.GenerateAccountsFrame;

import java.awt.Container;
import java.awt.EventQueue;
import javax.swing.JButton;
import javax.swing.JFormattedTextField;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.UIManager;

public class EditAccountsFrame {

	private JTextField accountTypeTextField;
	private JFormattedTextField confirmPasswordFormattedTextField;
	private JFormattedTextField passwordFormattedTextField;
	private JFormattedTextField displayNameFormattedTextField;
	private JTextField accountTextField;
	private Container container;
	private JFrame frame;

	/**
	 * Launch the application
	 * @param args
	 */
	public static void main(String args[]) 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					EditAccountsFrame window = new EditAccountsFrame();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application
	 */
	public EditAccountsFrame() 
	{
		try
		{
		    UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		}
		catch(Exception e)
		{
			e.printStackTrace();
		}
		
		createContents();
		
		frame.setVisible(true);
	}

	/**
	 * Initialize the contents of the frame
	 */
	private void createContents() {
		frame = new JFrame();
		frame.setTitle("Edit the Account");
		frame.getContentPane().setLayout(null);
		frame.setBounds(100, 100, 329, 375);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		container = new Container();
		container.setLayout(null);
		container.setBounds(0, 10, 322, 337);
		frame.getContentPane().add(container);

		final JLabel accountLabel = new JLabel();
		accountLabel.setText("Account");
		accountLabel.setBounds(22, 41, 155, 15);
		container.add(accountLabel);

		accountTextField = new JTextField();
		accountTextField.setBounds(21, 62, 234, 21);
		container.add(accountTextField);

		final JLabel displayLabel = new JLabel();
		displayLabel.setText("DisplayName");
		displayLabel.setBounds(22, 89, 69, 15);
		container.add(displayLabel);

		displayNameFormattedTextField = new JFormattedTextField();
		displayNameFormattedTextField.setBounds(22, 110, 233, 21);
		container.add(displayNameFormattedTextField);

		final JLabel passwordLabel = new JLabel();
		passwordLabel.setText("Password");
		passwordLabel.setBounds(22, 137, 60, 15);
		container.add(passwordLabel);

		passwordFormattedTextField = new JFormattedTextField();
		passwordFormattedTextField.setBounds(22, 158, 233, 21);
		container.add(passwordFormattedTextField);

		final JLabel passwordLabel_1 = new JLabel();
		passwordLabel_1.setText("Confirm Password");
		passwordLabel_1.setBounds(22, 185, 103, 15);
		container.add(passwordLabel_1);

		confirmPasswordFormattedTextField = new JFormattedTextField();
		confirmPasswordFormattedTextField.setBounds(22, 206, 233, 21);
		container.add(confirmPasswordFormattedTextField);

		final JLabel accountTypeLabel = new JLabel();
		accountTypeLabel.setText("Account Type");
		accountTypeLabel.setBounds(22, 233, 103, 15);
		container.add(accountTypeLabel);

		final JButton addButton = new JButton();
		addButton.setText("Add");
		addButton.setBounds(21, 296, 99, 23);
		container.add(addButton);

		final JButton exitButton = new JButton();
		exitButton.setText("Exit");
		exitButton.setBounds(126, 296, 99, 23);
		container.add(exitButton);

		final JLabel pleaseWriteTheLabel = new JLabel();
		pleaseWriteTheLabel.setText("Please write the account information");
		pleaseWriteTheLabel.setBounds(22, 10, 233, 25);
		container.add(pleaseWriteTheLabel);

		accountTypeTextField = new JTextField();
		accountTypeTextField.setBounds(22, 265, 233, 21);
		container.add(accountTypeTextField);
	}

}
